Fixed print bug on closing and reopening print widget