The Vref value is automatically changed to Vdda/4 and set as ILLEGAL.
I'm not sure what the problem was. But it's gone, anyway.
I had to copy and paste my files on a project that didn't have this problem.
This may due to old PSoC Creator you are using. Does this happen with the latest PSoC Creator? PSoC Creator 1.0 (FCS)?