flyctl ssh console tries to connect to stopped machine

I have an app that has multiple machine instances. When I try to ssh into the app it tries to connect to the first instance which is in the stopped state and the connection never happens. There is another instance which is in the started state, but flyctl doesnt try to connect to that instance.

Also, is there any way I can connect to a particular machine instance rather than just the first instance (or if there is fix for this issue), the first started instance? If I have an error in the logs, I would like to connect to a particular running machine instance to collect more info about that error.

You can pick a machine using fly ssh console -s to select from a list or fly ssh console -A <ip_address>. Use fly machines list to find the IP.