Fix possible reference before assignment.