Removing static aberrations from the active optics system of a wide-field telescope