[fix] Fix an issue that was preventing the reconnection from working properly

Closes #284