fix previous/next table

Signed-off-by: chavp <my.parinya@gmail.com>