Bugfix for inherited attributes check #125

Found a bug in my last pull-request, sorry :[