Fixing Parent Window Problem