Fixed result output mistake