Fix bit shifting.