can't believe i've spent the last hour debugging an issue only to find out it's because of some