Fix windowOpen bit mask