to fix res url issue