Fixed the wrong empty count