Problem with replacing data