Fixes OnStateChange annotation issues

Now tooltips are the next broken thing. Anyway, no UI starts to
work in offline mode :)

Fixes #5