DC: fixup the 3d scaling function

Change-Id: I32e0d96c33879ac12855a3377e98ad795376429f