minor fix to change_rec_dev function

Minor fix so the wrong number of recdevs throws the error appropriately.