Bug fix for checking the word/byte bit

Fixed the issue with setting the significant byte according to word/byte
bit.
Reported by Edmund Griffiths.