Fix refresh bug half way