Fix style loss on autoreloading

Fixes #25.