fix attribute error when --interactive not used