fix inputManager exception when auto load runs while another file is being loaded