Bug fix in trying to add a state callback to a conn