loader fix. type check