Fix segfault after defeating enemy