prevent window resizing
make a copy of the entities before updating for better safety