Two minor bugfixes

And one attempt to control refresh rate.