Fix bug in x,y mouse calcs