sort out empty jar issue