Fix logic in fallback code.