Clicking sound at beginning of chord

I am on Logic Pro, and I’ve noticed a clicking or popping sound in the beginning of chords played on Vital. What’s weird is that if I play the same midi progression on a loop the pop disappears after the second or third loop. I’ve tried increasing the attack, increasing buffer size, changing oversampling to draft 1x, and all process buffer ranges, but still the only way to get rid of the click is to play the progression on loop. It seems this would mean that it’s probably my computer at fault here and not Logic or Vital, as I’m working on a 2014 macbook pro. But is there any way around this?

Found a workaround by adding enveloper, and within it, turning gain all the way down and attack timing all the way up. Maybe this helps someone else.