fixing some NPE when symlinks are in any part of the model