fixes a small crash from previous commit