fixed error with sq brackets