Panel dynamic tab crashes

Thanks for the prompt reply with a workaround and the follow-up fix!