fixed blags bug