Fix bug where modal would look ugly