Fixed mandatory input bug in as.character #FML