Fix for weird jQuery click() trigger problem