fixed attribute array handling.