fix url handling with only one callback