Fix bug, dialog appears over home page for 1s