Fix: Changed player data $data to $pd, so we not overwrite error $data.