fix end spawn generation