Update Environment.php

Bug fixes