fix portrait bug