magical platform code fixed