fix res:// protocol issue