fixes #281

Tested and worked 27 sep