Api controller extend base corrupt controller