Try this one:
https://github.com/elinw/AssetFix from @elinw
I discussed with Elin this and i comes to the conclusion that is better to rewrite all the assets table because some databases are really broken. Some users deletes manually the categories and content without delete the assets so if we have a big database, we can found lot of unused assets.
Can you give me more details about your issue?
Try with the current version