Fix hiding buttons after click.