fixed implementation of attribute module