fixed mass assignment error