Fix inconsistent output