fix custom types