fix a bug which leads to small size diff file