Fix metadata problem with controller inheritance