Fixing output errors.