Fixed stat controller bugs