Fixed the bug about calculation of decrements