fix sql action