fix body and footer legend