fixed error return