Thanks to all those who commented. I feel quite stupid because it was such an obvious mistake lol