Fixed bug where not targeting and attacking crashed game