Bugfix on inherit private magic methods

please don't use `and`: use `&&`