fixing snippet title rendering bug