Fixed console output duplicated