fix the bug of empty container