fixed fullscreenbug, issue #40