fixed bug on drag/flicker