fix resource url preview error