One solution is to just ignore the errors that its throwing

We could just ignore the error, since it just seems that the error is letting us know what happened rather than actually doing something we don't want it to.