Fix hide window intent call.

Fixed hiding a window through the intent call.