Fixed getID() in Entity