Fixed a nasty little bug.