Fix bugs in osuflow wrap class