fix bug in title helper