enforce integer indexing for compatibility with future versions of numpy