core: fixing external shape getExtent error