Fixed bug in start state of relay