Some morning fixes ;)

Fixed two NPE
Fixed Detail view of Sum graphs