Fix bad first-image refresh bug