fixed reverse loading of topics

data.after can be zero which was causing a invalid data error