fix map resising(show/hide) problems