Fixed a bug: Negative numbers were wrongly handled