fix sample environment units problem