fix the bug in spawning non-queuehead vms. but running job is still in debugging.