Fixed an stupid NPE