Applied patch from Jeff Evans to fix forward attachment problem