fix for issue #184

fix suggested by mikulcak

fixes #184