fixed some bug in array views