Fix for the array_keys problem.