fixing issues with rename dialog