Fixed a bug with the invasion buffers