fix gallery not passing in item