Fix an error from a previous commit, these belong in the if