Fixed const issue with array views