fixed two wrong conditionals with options[:debug]