Hotfix: Add environment judgement
20140712