Fixed the code to apply default country