A little ugly patch

An ugly solution to an ugly problem.