Fixed a bug in Entity with wrong parameter order in constructor