prevent setting invalid element numbers in the old console