fixing entity relocation bug after resize