fix a bug in line #30