fixed bug when loading dragend in head