Fix possibility of sync ctx run to report wrong result.