Fix bug in process logger