fix for #399
Merge pull request #400 from ReverseRetail/master

fixes #399