Fixed homing missile and memory leaks