fixed mass-assingn error