fix magic variable