Fixing cloud type bug