- The flags were overwritten in a loop and therefore only stored the last value of the flag. - Change the fields into arrays so that the flags are not overwritten. Change-Id: I59762d7c84bc3d81bf3b0b5e85ffe689260d970a