fix bug environment