bug in resize code was causing the window to be unhide-able. andrey