mouse freeze bugfix