fix for overwrite in put operation