fix commitUrl function