fixed error when default is non-string