fixes issues with mousemove functionality and targets