Fix the error induced by mock click.