fix #175

just as said in the issue comments and seems to work