thrift port NaN bug fix
Merge pull request #129 from sameerak/master

thrift port NaN bug fix