fix enterprise error and remove duplic record in bot