prevent refresh from throwing erros