fix previous status function
Merge pull request #5108 from ticoann/fix

fix previous status function