fix the title method