fix get connection on _updatePrepare