Fixed a bug with first item in array