Return previous value if invalid