fix adding data issues