minor bug fixes to entry add method