Reapplied scaledenom fix