fixes mass assignment bug