fix default val generation