fix #4

corrected a bug due to refactoring in makeAttributesInstance
 Thanks to MOON-CLJ and panisson