Fix #8218
Fix #8069
Fix #7073
Fix #8069
Fix #8069
Merge pull request #711 from ddanielvaz/bugfixes

Bugfixes for fTools.

Fix #8218
Fix #8069
Fix #7073