Fixes mouse offset bug