fix bug when dragging a custom after filling the box