fix bug in repeat install