Fixing exec problems