fix invalid generated sql code