fixed cdd sql error