Allow 0 as entity id