Add missing semicolon to method declaration
Fix some getAttribute calls to use the right array