Fix form scaling issue on linux

Closes #505