Fixed issue with debug being printed when on  live