Fix Chrome refresh bug