Fix issue with functions declared in a structure contained in an array