fix demo not prev bug