Bug Filed on 05-18-2016: GPIO state changes after restart

It’s a problem that is being worked on. Unfortunately there is nothing you can do to fix it for now.