fix flags hash index