fixed error number type