fix bug on displaying and passing env lock reason