fixed mouse offset bug