Fixed garbage output