Fix the bug occurs during addition of activity

Bug occurs after entering '@' sign.
Fix the bug while changing category of an activity

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