fix potential NPE introduced in previous commit