try to fix previous and next problem