fixing errors in environment matrix