fix flag click, when clicked was passing wrong value to current_locale