fix #20 thanks to @Simon