Fixed invalid write in graphlets, causing some crashes.