removed double assignments

removed double assignments for `$data` array.