(BUG) Buying new spells eats money based on how many clicks

Not sure if it's been posted but when buying new spells if you click more than once like an ADD child (like me), it will take the amount of money based on how many times you clicked. I.E. I went to buy Life Tap level 1, 1 silver, I clicked 5 times and it taught me the skill but took 5 silver from me. Not sure if it's because of the lag though.