Fix refresh problem on dock widgets