fix a bug where the last might might get cut off