fix environment attribute in search