fix StatementHanlder bug