* fix race condition at applying profile