Fix assert case that's never reached