fix previous status function

fix typo