Bug fix to conditionals on `topic_indices` and disambiguation of `JS_div`.