Fixed saving data issue dictionary didnt contain document keys