Public variables reset when after closing and reopening

Hello,

Could you please provide the full repro steps to reproduce this issue in a clean project? If you have not attempted to reproduce this in a clean project, please do so and keep track of the steps so we can reproduce it on our end.

Thank you