Add compatibility for 2.4 to metadata