fixed mass assignment issue