Fix the get byte/half-word implementation.