Fixed fonts detection in windows and fixed some small bugs