Fixed a bug that's seemingly been there for ages.