fixed kemer calculation bug