Not sure why you are setting the `$entries` variable twice; however, the second time the variable is set, the first value is lost.