sum bugs fixed