fix broken sql statement fix #122