Fixed bug dealing with main page empty list