Fixed bug with perish method in Environment template.