fixed send message bug when target is the parent window