Fixed maximized window not returning to saved size

if it was closed in maxmized state and then re-opened