Fixed two errors dealing with error outputs