Fix numpy indexing issue for continuous data