Redefined error mark

-Methods that returned -1 as error, now return zero.