Move the above code to "drag action in objectblue" should solve the problem.