more fix sql