Fixed parsing of capabilities (1 << n) changed to (1 << n -1) due to index of bits starts at 0