Fixes syntax bug at method array key