Ouch, fix a bad case of night coding.