Program doesn't work after disconnect and connect power