fixed bug in ows.cpp