Fixed incorrect output