Fixing title flashing bug