fix rule attributes_for_save