fixed custom type related error