Getting bugs because the error has not been set to nil.