Fixed double entry bug