fixes #12 remove item when popping