Fixed a really stupid bug

that came up because I forgot how Python works