invalid reference to undefined var options(.required) instead of defined var required