Changed check to the correct number of bytes