fix initial width & height if orientation is not 0 or 180