Fixed crash when running on analysis mode