Corrected an error in the order of operations.