fix window setting on BMApp