Fixed a stupid run-time error