fix autospawn