fixing magic