Bug fixing: importing trace module after importing trace function from core