fixed bug in window config