fix rest count in mobile