Quick fix. Fixes #18. Maybe would worth more investigation, but working properly for higher scales.