fixed shift clash check logic