Order of operations fix.