fixes a layout bug, where the front view controller would not resize correctly.