added fix for changing permalink on category edit