fixing issue with warning popup