Fix bit shifting error