locale fix + window size fix