Fixed a bug that caused mass boost / unboost of spells to be applied to wrong objects.