fix a bug regarding scale.