make sure we set the query instead of having a broken url being set