Fix invalid function declaration