Fix quick zoom in/out in firefox making everything disappear. Fixes #140 Fixes #272