Fixed bug with ANR.