Added extra validation to avoid interference of shares not of public type (unhandled by the moment)