fixed cfs. There were multiple SQL calls