fix set on boot bug