Fix credirect case conditions