Reset magic_inited