Bug fixing on deleting repository