adding validation on the base options to avoid the error TypeError: can't convert Nil String into Integer
removing typo.