Fix timehabit query_url