Adding error log on update mouse position.