bugfix in ws_fnc_getPos