Fix get real entities bug