Fix problem on windows7 and mint layout.