fixed sub link bug when remote gzipped