fix scale calculation for label position