Fixes so it works in minimized form.