Very hacky fix for the has many URL generation