Fix stop update query