common.append: fix bug in resize scaling