Fixed modules sorting based on priority
Fixed clear statistic that wasn't clearing.