fixed problem in add entry method