Fix some mouse positioning issues