attempt to fix magic