Fixed a bug in OpenWindow packet