controller foundry fix