Fixed bugs on UI: error message alerts.