FIX: environment not being detected.