Fixes minimize restoration too