Fix NPE with chunk loader