Fixed: maximize and unmaximize button are disabled in a scenario #358