fix double swap of method when restarting to listen to the app