Fix some minor bugs, update kazbase