fixed the bug in firefox for the move functionality