Fix silly square bracket access using dot notation