Fix NPE initializing service