fix spwan error