Fix a bug on provision