string/boolean error

some bugs found.
Merge pull request #25 from mechaet/master

string/boolean error