Fixed various bugs. SpotInstancesAllocator to be modified