related-posts: fix negative indexing