fix environment issue