Ok, so this was a really stupid mistake