fix object evaluating to False