fix select empty attribute