Fixed data sync and added onPostSetup for char vars