fix bug - for -1 or minus