fix server error DoesNotExist catching