crash fix try/except