Revert "Fixed a crash and memory leak on the ribbon code"

This reverts commit 830ab77628c197fee47e44871b85d7283d3bc639.
asd
asd