improved buffer#repalce to not move icon