Fixed bug with window options