Hamming code problem


After encoding using hamming code , the pattern for 1010111 is (consider even parity)?


i think i got it error in 2nd bit ,so correct code is 1010101


The pattern given is 1010111.when we find the syndrome bits the 011 is obtained. So there is an error occurred at 3rd bit. By flipping it the correct pattern is 1110111.