work around bug in model loader

@FroMage please review this!