Fix parsing for opts