Fix the bug of clearbar

because of merge