Fixed error in preventing duplicate entries