fix my earlier fix

@orta I messed up and didn't include this last change in my commit before my last PR. Causes a crash otherwise.