[Fixed error alerts to run on main thread]