fix for issue 184

fix suggested by mikulcak