fixes potential bug durring board reset