fixed calc mouse coordinate