string/boolean error

some bugs found.