Removes compiler warnings due different type size.
Fixes a typo in the legend.