Fix total functions stock