one more sql fix