Fixes to error output in set