bugfix

Check if methods getShared and setShared exist