Tested and fixed bug in connection admin function.