Correcting :path exception logic