Wow, I couldn't have imagined how using NULL could cause so much weirdness