Fixed undefined lookupProtocol