fixing horizontal spawn