Added missing state change and changed compiler version