Fixed console output bug