fix collapse