fixed error thrown