Fixed position of dismiss button

Fixed #1152