fix permissions (dirty fix), fix entity_type_id
added a rules temporary dirty fix