small crash fix