corrected the bug in heirarhical feature