fix bug with adding titles