Issue #152 fix

Hi,

I just had a quick hack at a fix for https://github.com/jawi/ols/issues/152