fixed bug causing multiple entries