Fixed possible array/crash issue.