bug fix for gpio status random after bootup