Bug fixing when objective is set by user in analyze subcommand