Fix errors resulting from mass assignment protection added in last commit