Fix valve runtime