bugfix: required check and option check both concatted with the wrong array