Free the connection
Fix the dist