Remove cast and tagmanager