Fix bug in sentiment calculation

Signed-off-by: Itai Koren <itkoren@gmail.com>