fixes #1267 - thanks for the report