fix map & mouse problems