Fix diag box maximum