Fix for using undefined array variables.