Fixed clearing buffer
This also fixed PageRank abort / segfault when compiled with -O