Fix the bug while changing category of an activity

More:
https://github.com/gsobczyk/hamster/issues/15