fixed various bugs on osg-client