last element fix