fix last element biug
Merge pull request #2 from wwwy3y3/master

fix last element bug