case number check fix