added base entity initialization to clear method in Entity