fix clearCompleted method variable name conflict.