minor fix to prev