challenging inconsistent rulings through writ petitions