Fix missing branch coverage in cursor