Fixed black line appearing after dialog is hidden