There might be a mix of tabs and spaces in the file. I'd recommend reformatting the block of code you are working on so it is consistently using 2 spaces per indent. We really shouldn't be using tabs for indentation, but some of the early folks did.