Fixed usage of error constant