Fix small shifts (use double)