Order of operations mistake fixed