fix title handling