Fixed Struct access bug