fixed hardcoded maxdate on statistics page