Bugs fixed in utils_wb func.