Fixed bug in parent attribute class