Fixing a bug with the virtual getters/setters