Bugfix framework run function