fixing finished setup detection