fixed bug so we can run fits with no environment