Fixed a bug which threw a rather unsightly error