Fix build by adding slicing syntax.