fix a bug in strided view indexing