fix bug when launched in portrait