bug fix: the option -o was not working in some cases
fixing the option -o