Fixed PostInitialize index out of bounds error