Thanks, sorry for this bug but i didn't have much time fixing it, the issue here occurs because the inner tiles of the terrain doesn't have a collision(i only spawned enemies on the tiles that doesn't have collision)