forgot one variable, fixed build, tested on 3.0.11