model loader: fix NPE