Avoid nil when no listen function