fixed bug of drag panel