fix sql command error