Fixed a bug where the first item was ignored