Summary functions fixed (minor fix)