CASC-219: switched warn to error, fixed typo and this refs