Fixing werror with maxAge