Remove references to obsolete fix_permissions function.

You should merge this fix into the template branch as well since the function doesn't exist there either.