adding crash fix