Fixed refresh crash