fix to pull correct typeerror fix