change title and fix Flag code