fixed if statement in project show controller