fix argument/spec type check
fix bug not to initialize color when empty (not nil)
fix typo