Fix url and secret bug