fixed fags bug