Small logic fix when marking processing state.