fix problem with overwrite data