Fixed maxstakeage and design bugs