Fix bug: error at delete repository