fix shift operation priority