bug overwrite $data