removing debug listener