some fix in nim_manager