fix null object in tobool