fixed typo in prev