Fixed bug that made impossible to add rules