Fix bug related to device process initialization.