Fixed bug, remove the last element in the array