Fix bug about connection and reporting