Remove bug in sql code