Fixed bug where operation is compared as a string