fix problem with Window#handle