Fix rename pocket function.