Fixed potential NPE (never happened, yet).