Fixed a very silly bug that I somehow introduced weeks ago but only recently caused a problem.