Fixed crash with ErrorFragment restart