Fix function dependency