fixed missing types when first time compiling