fixed crash when entities enter the same tile