fix for replace mode