Fixed some array/hash issues.