Fixed issue with invalid arrays.