bugfix: do not decrease if less than 1

Signed-off-by: Zeljko <zeljko@zwr.fi>