bug fixed for sql parser