Fix order of operations bug with DEC