should fix sql error