some minor fix to reconnect