fixed problems when used inside of an {{each}} helper

The code was unable to resolve `item` inside an {{#each item in items}} helper. Ive fixed that.