Fixed some problem with popup message alert.