Fixed stat setting bugs