removed double assignments

removed double assignments for `$data` array.
Ok, could you please update the PR and revert the change for this assignment?
Then I can merge the other two lines. :)