Fixed Output bug