Fix warining rmagic