Fixed incorrect attribute index (causing error).