fixing bug for long page titles