fix select update problem