fixed maxAge bug