fix regression of 3241fc51830b47b0cba2d67bb79cbc1b923facd7 (fix #178)