fix prev issue