Fixed bug with all negative array.