fixes #5 inheritance of prototype attributes