Fixing callback on console listener