fix for issue 273 (and bump version number to 1.1.2)