Real fix to hidden function problem