fix bug in layer scaling