Bugfixing burn function.