Reverted the temporary fix for naming. As it turns out the problem was simply the environment not being defined last in the simulation script