fix: continue loop if value is invalid