Fix class chest bugs.