fix disconnect param function