fix for undefined protocol