fixed another related sql bug