fix errors when no options passed