Bug fix on drag task