small fix for title changing problem