fixed money counting bug