Fix lsb counting from 1