Type error: Hand String not Number to OperationsError