Fixed refresh thread not starting