fixed error if there were no bags to display