fix setting undefined title