Ensure magic is set.