Fixes all runtime bugs