fixed defect of showing right color for page & doc size