Value on a field disappears when using condition