Fix bug in Array-check