Fix settings window bug