Fixed yet another bug reported by Kesten Broughton.