fix for https urls