Fix check for existing partition type