fix generated spec model