update sample settings to let it can run