fixed invasion bug