Fixing output issues in comparison command