fixed entities going off screen