Fix for sum