fix entities spawn