try removing the association patch, which seems to cause a weird .each for nil error