fix error when no option