[~] fix rmagic