fix to adjust for view controllers presented modally.