Fix support for stats in popup
update submodules
Fix stats.getStats() function