You should do a check if a new name is entered (for the rename button). If I click on \'cancel\' I will get \'/rename: invalid parameters...\'