Mouse button crash fix