additional fix for bool(DataFrame) error