fixed bug in operation parsing