we should do the same thing for minimized as well.