Fix a bug when the wrong chain was submitted for validation