Fixed Coverity 1046899 (Improper use of negative value)