Fixing a var scope bug, occuring when more than one posts are reported