funcsurface fixing