fix bugs with statekeeper and difficulties and categories