Fixed error in e_constraints.get_all_constraints

Fixed bug where get_all_constraints return an empty list.