Fixed env() call at bootstrap