Bug fix. Triggering click unnecessarily