[#4] bugfix, thanks @agerace