Fixed a refresh problem where notebook tabs were not repainted.