fixing crash on enemy ship destroy