Bugfix on inherit private magic methods

Should be applied also to all other classes