fix if statement bug caused by #7
archive v1.0.1
release v1.1.0