fix bugs in WOZ