fix select fields bug