Fixed invalid cross-thread access exception.