Fix process types writing.