Fixed bugs in Statistics Storage Plugin.