Fixing invalid token on flag fg dictionary