Fix cannot load map first time