scaling fix