Fixed additional 3 bugs

- timer not working fixed
- bad saving of rules fixed
- bad definition of rules fixed