Absolutely no idea why this works but it does