fixed error condition