Fixed bugs using static variables.