Double counting bug