Click event error fixed