Fixed massive stupid bug in overlay algorithm that propogated everywhere...