Fixing find previous and next.