fixes #553 - many thanks for the heads up @stustison