fixed if statement in company views