Bug fix: replace .size with .length on an array