Fixed a minor bug that caused an error message.