Resolve the bug causing #0 to enter the db twice.