fixing empty item problem