Fixed incorrect output statements