When getting a level 4, level 6 or special-designed building, you need to spend both coins and diamonds to merge buildings. So that's why the number of diamonds may appear less than the number before.