fix comm is not defined